<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------



Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('/', 'index/index');
Route::get('hello/:name', 'index/hello');

Route::get('api/:version/loginWechat','api/:version.Login/loginWechat');

Route::post('api/:version/getToken','api/:version.Token/getToken');
Route::get('api/:version/veirfyToken','api/:version.Token/veirfyToken');


Route::post('api/:version/addType','api/:version.Type/addType');
Route::post('api/:version/addPlate','api/:version.Plate/addPlate');